package com.hbnu.Pojo;

import java.util.List;

public class User {
    private int id;
    private int createUserId;

    public int getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(int createUserId) {
        this.createUserId = createUserId;
    }

    public User(int id, List<DormBuild> dormBuildList, String password, String stuCode, String dormCode, String name, String sex, String tel, int dormBuildId, int roleId, int disabled) {
        this.id = id;
        this.dormBuilds = dormBuildList;
        this.password = password;
        this.stuCode = stuCode;
        this.dormCode = dormCode;
        this.name = name;
        this.sex = sex;
        this.tel = tel;
        this.dormBuildId = dormBuildId;
        this.roleId = roleId;
        this.disabled = disabled;
    }
    public User(String name, String password, String sex, String tel, List<DormBuild> dormBuilds, int roleId) {
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.tel = tel;
        this.dormBuilds = dormBuilds;
        this.roleId = roleId;

    }
    public User() {
    }

    

    public List<DormBuild> getDormBuilds() {
        return dormBuilds;
    }

    public void setDormBuilds(List<DormBuild> dormBuildList) {
        this.dormBuilds = dormBuildList;
    }

    private List<DormBuild> dormBuilds;
    private String password;
    private String stuCode;
    private String dormCode;
    private String name;
    private String sex;
    private String tel;
    private DormBuild dormBuild;

    public void setDormBuild(DormBuild dormBuild) {
        this.dormBuild = dormBuild;
    }

    public DormBuild getDormBuild() {
        return dormBuild;
    }

    private int dormBuildId;
    private int roleId;

        private int disabled;
    public void setDormBuildId(int dormBuildId) {
        this.dormBuildId = dormBuildId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setStuCode(String stuCode) {
        this.stuCode = stuCode;
    }

    public void setDormCode(String dormCode) {
        this.dormCode = dormCode;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public int getId() {
        return id;
    }

    public String getPassword() {
        return password;
    }

    public String getStuCode() {
        return stuCode;
    }

    public String getDormCode() {
        return dormCode;
    }

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }

    public String getTel() {
        return tel;
    }

    public int getDormBuildId() {
        return dormBuildId;
    }

    public int getRoleId() {
        return roleId;
    }

    public int getDisabled() {
        return disabled;
    }

    public void setDisabled(int diabled) {
        this.disabled = diabled;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", createUserId=" + createUserId +
                ", dormBuilds=" + dormBuilds +
                ", password='" + password + '\'' +
                ", stuCode='" + stuCode + '\'' +
                ", dormCode='" + dormCode + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", tel='" + tel + '\'' +
                ", dormBuildId=" + dormBuildId +
                ", roleId=" + roleId +
                ", disabled=" + disabled +
                '}';
    }
}
